babl: add R~G~B~ color models and pixel formats
authorØyvind Kolås <pippin@gimp.org>
Wed, 20 Jun 2018 10:33:28 +0000 (12:33 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 20 Jun 2018 17:39:20 +0000 (19:39 +0200)
commitb2b7c1ecd6b724374be57a3ea3871ffe36f1e6cd
tree9b2b0e5fae3532f9ddec91d9f73beebccccebb4b
parent53a18b5a5dabcfd5228e6ae587f9d41360248396
babl: add R~G~B~ color models and pixel formats

From a given BablSpace which defines RGB chromaticities and
per component TRCs, the following are the defined formats:

R'G'B' with the TRCs applied
RGB    linear data

and now a new one

R~G~B~ with the sRGB TRC, this permits any BablSpace to be the
native format of a buffer in an application while having both
a 'perceptual' in R~G~B~ and linear in RGB that is possible
to derive from it. Importantly it is also possible to recover
the babl space used to create the buffer.
babl/babl-ids.h
babl/base/model-rgb.c